module.exports = app => {
    const { STRING, INTEGER, TEXT, DOUBLE, DATE } = app.Sequelize;
    const Content = app.model.define('menus', {
        id: { type: INTEGER, primaryKey: true, autoIncrement: true },
        uid: INTEGER,
        name: STRING(255),
        key: {
            type: STRING(255),

        },
        path: STRING(255),
        pid: {
            type: INTEGER,
            defaultValue: 0
        },
        self_state: {
            type: INTEGER,
            defaultValue: 1
        }, //1正常 0 删除
        created_at: DATE,
        updated_at: DATE,
    }, {
        charset: 'utf8',
        collate: 'utf8_unicode_ci'
    });
    return Content;
};